<?php 
class getinfoDao extends Dao {
	
	public $table_name = 'test';
	private $fields = "test,xxx";
	
	/**
	 * 新增用户
	 * @param $user
	 */
	public function addData($data) {
		$data = $this->dao->db->build_key($data, $this->fields);
		return $this->dao->db->insert($data, $this->table_name);
	}
	public function getinfo($id='')
	{
		return $this->dao->db->get_all('test','30','0');
		//return "xasda";
	}
}